<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title th:text="${session.title}">123</title>
    <link th:replace="common/header"/>
    <link rel="stylesheet" th:href="@{/css/ace-skins.min.css}"/>
    <script th:src="@{/js/layer/checkExt.js}"></script>
</head>
<body class="navbar-fixed">
<div th:replace="common/top"></div>
<div class="container-fluid main_bg" id="main-container">
    <a id="menu-toggler" href="#"><span></span></a>
    <div th:replace="common/menu"></div>
    <div id="main-content" class="clearfix">
        <div id="page-content" class="clearfix">
            <div th:replace="common/title"></div>
            <form class="form-horizontal" th:object="${footSociaty}" method="post" th:action="@{/foot/footSociaty/edit}"
                  name="form" th:if="${session.footUser.qx.text == '管理员'}">
                <input type="hidden" name="id" th:field="*{id}"/>
                <h3 class="header smaller lighter blue"><em class="icon-edit"></em>修改战队信息</h3>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="name">战队名称:<span style="color:red">*</span></label>
                            <div class="controls">
                                <input type="text" th:field="*{name}" name="name" id="name" class="input_fix"
                                       placeholder="战队名称"/>
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('name')}"
                              th:errors="*{name}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="totalNum">战队总人数:</label>
                            <div class="controls">
                                <input type="text" th:field="*{totalNum}" name="totalNum" id="totalNum"
                                       class="input_fix" placeholder="战队总人数"/>
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('totalNum')}" th:errors="*{totalNum}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="winTime">胜利次数:</label>
                            <div class="controls">
                                <input type="text" th:field="*{winTime}" name="winTime" id="winTime" class="input_fix"
                                       placeholder="胜利次数"/>
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('winTime')}" th:errors="*{winTime}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="sameTime">打平次数:</label>
                            <div class="controls">
                                <input type="text" th:field="*{sameTime}" name="sameTime" id="sameTime"
                                       class="input_fix" placeholder="打平次数"/>
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('sameTime')}" th:errors="*{sameTime}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="loseTime">失败次数:</label>
                            <div class="controls">
                                <input type="text" th:field="*{loseTime}" name="loseTime" id="loseTime"
                                       class="input_fix" placeholder="失败次数"/>
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('loseTime')}" th:errors="*{loseTime}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="jf">积分:</label>
                            <div class="controls">
                                <input type="text" th:field="*{jf}" name="jf" id="jf" class="input_fix"
                                       placeholder="积分"/>
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('jf')}" th:errors="*{jf}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="haveNum">当前拥有会员数量:</label>
                            <div class="controls">
                                <input type="text" th:field="*{haveNum}" name="haveNum" id="haveNum" class="input_fix"
                                       placeholder="当前拥有会员数量" readonly="readonly"/>
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('haveNum')}" th:errors="*{haveNum}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="status">状态:<span style="color:red">*</span></label>
                            <div class="controls">
                                <select th:field="*{status}" name="status" id="status" class="input_fix">
                                    <option th:each="zdzt : ${T(org.footballmanager.pandafootball.system.domain.enums.ZDZT).values()}"
                                            th:value="${zdzt}" th:text="${zdzt.text}">123
                                    </option>
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('status')}"
                              th:errors="*{status}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="level">等级:<span style="color:red">*</span></label>
                            <div class="controls">
                                <input type="text" th:field="*{level}" name="level" id="level" class="input_fix"
                                       placeholder="等级"/>
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('level')}"
                              th:errors="*{level}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="liveness">活跃度:<span style="color:red">*</span></label>
                            <div class="controls">
                                <input type="text" th:field="*{liveness}" name="liveness" id="liveness"
                                       class="input_fix" placeholder="活跃度"/>
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('liveness')}" th:errors="*{liveness}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="danGradingId">段位:<span style="color:red">*</span></label>
                            <div class="controls">
                                <select th:field="*{danGradingId}" name="danGradingId" id="danGradingId"
                                        class="input_fix">
                                    <option th:each="t: ${danGradingList}" th:value="${t.id}" th:text="${t.name}">123
                                    </option>
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('danGradingId')}"
                              th:errors="*{danGradingId}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <!--PAGE CONTENT BEGINS HERE-->
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="img">战队图标:<span style="color:red">*</span></label>
                            <div class="controls">
                                <input th:field="*{img}" type="file" name="img" id="img" onchange="check(this);"
                                       class="input_fix"/>
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('img')}" th:errors="*{img}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="text-center span12">
                        <button class="btn btn-primary" type="submit"><em class="icon-save"></em>提交</button>
                        <button class="btn btn-danger" type="reset"><em class="icon-remove"></em>取消</button>
                        <a class="btn" type="button" th:href="@{/foot/footSociaty/search}"><em
                                class="icon-arrow-left"></em>返回</a>
                    </div>
                </div>
            </form>
            <!--/#page-content-->
        </div>
        <div th:replace="common/skin :: skin"></div>
    </div>
    <!--/#main-content-->
</div>
<!--/.fluid-container#main-container-->
<div th:replace="common/js"></div>
</body>
</html>